/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class CoffeeMakers {
    static categoryCode = '010050013';

    static categoryName = '咖啡机';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return CoffeeMakers.categoryCode;
    }

    get categoryName() {
        return CoffeeMakers.categoryName;
    }

    getConcentration(params) {
        return command({
            method: 'getConcentration',
            methodId: 'ag6DAWiY9',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCurrentTemperature(params) {
        return command({
            method: 'getCurrentTemperature',
            methodId: 'aKo4CArOU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'agiRKkg2C',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'agzzRGdNx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTemperature(params) {
        return command({
            method: 'getTemperature',
            methodId: 'aINcJ9lub',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkStatus(params) {
        return command({
            method: 'getWorkStatus',
            methodId: 'aKAs3LziE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setConcentration(params) {
        return command({
            method: 'setConcentration',
            methodId: 'aIObjr8lq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'aIokpw7Qn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStart(params) {
        return command({
            method: 'setStart',
            methodId: 'aD0JoSaPr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStop(params) {
        return command({
            method: 'setStop',
            methodId: 'aDiNMHWCM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'aIwo4lxgA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTemperature(params) {
        return command({
            method: 'setTemperature',
            methodId: 'aD5xCJrdk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default CoffeeMakers;
